<?php 
defined('_JEXEC') or die;

// disable core styles to avoid bs conflict 
OC_Util::$core_styles = array();

?>

<div class="folderwordtop medium songti clearfix">
   <span>请选择移动到:</span>
   <div class="createfolder_div pull-right">
      <a class="createfolder">创建文件夹<i class="addi"></i></a>
      <input class="fname" style="display:none;" type="text" value="" placeholder="10个中文字符以内"/>
      <span class="editbtns hide"><i class="ok"></i> <i class="cancel"></i></span>
   </div>
   <input type="hidden" id="infolder_ids" name="ids" value=<?=$_['ids']?> />
</div>

<?php if (empty($_['folderList'])): ?>
<div class="postionlisttable_nodata large yahei" style="text-align: center;">没有对应的文件夹</div>
<?php else: ?>
<div class="postionlisttable medium folderlist movefolderlist" style="margin-top:0px;">
   <table id='infoldertable' width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
         <?php 
         $n=count($_['folderList']);
         for ($i=0; $i < $n; $i++) {
            $folder = $_['folderList'][$i];
            if ($i != 0 && ($i%2) == 0) {
               echo '</tr><tr>';
            }
         ?>
         <td width="50%">
            <a href="javascript:;" class="selectitem" data-fid="<?=$folder->folder_id?>" ><?=$folder->folder_name?><em style="color:#666666;">(<?=$folder->num?>)</em></a>
         </td>
         <?php 
         }
         
         $filledNum = 2 - ($n%2);
         if ($filledNum < 2) {
            for ($i=0; $i < $filledNum; $i++) {
               echo '<td width="50%"></td>';
            }
         }
         ?>
      </tr>
   </table>
</div>
<?php endif; ?>
<div class="savefolderbox_btn">
   <span class='error server'></span>
   <a href="javascript:;" class="btn btn-info saveinfolder">确认</a>
</div>
